﻿<%@ Page Title="Laptop" Language="C#" MasterPageFile="~/MasterPage2.master" AutoEventWireup="true" CodeFile="LapTop.aspx.cs" Inherits="LapTop" %>
<%@ Register TagPrefix="cc1" Namespace="SiteUtils" Assembly="CollectionPager" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:DataList ID="DataList_SanPhamLapTop" runat="server" RepeatColumns="3">
        <ItemTemplate>
            <asp:HyperLink ID="HyperLink5" runat="server" Font-Bold="True" 
                Font-Size="Medium" ForeColor="#0000CC" 
                NavigateUrl='<%# Eval("ID", "ChiTietLapTop.aspx?ID={0}") %>' 
                Text='<%# Eval("TenSanPham") %>'></asp:HyperLink>
            <br />
            <br />
            <asp:Image ID="Image3" runat="server" Height="150px" 
                ImageUrl='<%# Eval("HinhSanPham","~/Image/{0}") %>' Width="175px" />
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <br />
            <br />
            <asp:Label ID="Label2" runat="server" Font-Italic="False" Font-Size="Medium" 
                ForeColor="Red" Text='<%# "Giá  bán :  " + Eval("GiaBanHienTai") + "VNĐ" %>'></asp:Label>
            
            
            <br />
            <br />
            <br />
        </ItemTemplate>
</asp:DataList>

<CC1:COLLECTIONPAGER id="CollectionPager3" runat="server" BackText="« Trang Trước" 
        FirstText="Đầu Tiên" LabelText="Trang :" LastText="Sau Cùng" 
        NextText="Trang Sau »" 
        ResultsFormat="Hiển Thị  Kết Quả Trang {0}-{1} (Tổng Số {2})">
    </CC1:COLLECTIONPAGER> 

  <%--Bo phan nay--%>
    
<%--<asp:SqlDataSource ID="SqlDataSource_SanPhamLapTop" runat="server" 
    ConnectionString="<%$ ConnectionStrings:I_Group_WebConnectionString %>" 
    SelectCommand="SELECT SAN_PHAM.ID, SAN_PHAM.MaDanhMucSanPham, SAN_PHAM.TenSanPham, SAN_PHAM.GiaBanHienTai, SAN_PHAM.HinhSanPham, SAN_PHAM.DoUuTien, SAN_PHAM.MaHangSanXuat, SAN_PHAM.SoLuotXem, SAN_PHAM.SoLuotMua, DANH_MUC_SAN_PHAM.ID AS Expr1, DANH_MUC_SAN_PHAM.MaNhomDanhMucSanPham, DANH_MUC_SAN_PHAM.TenDanhMucSanPham FROM SAN_PHAM INNER JOIN DANH_MUC_SAN_PHAM ON SAN_PHAM.MaDanhMucSanPham = DANH_MUC_SAN_PHAM.ID WHERE (DANH_MUC_SAN_PHAM.MaNhomDanhMucSanPham = 1)">
</asp:SqlDataSource>--%>
</asp:Content>

